import Login from "./contains/Login/Login";
import {Switch, Redirect, Route} from "react-router-dom";
import Register from "./contains/Register/Register";
import Home from "./contains/Home/Home";
import ForgetPassword from "./contains/ForgetPasssword/ForgetPassword";

function App() {
    return (
        <div className="App">
            <Switch>
                <Route path={'/login'} component={Login}/>
                <Route path={'/register'} component={Register}/>
                <Route path={'/home'} component={Home}/>
                <Route path={'/forgetPassword'} component={ForgetPassword}/>
                <Redirect to={'/login'}> </Redirect>
            </Switch>
        </div>
    );
}

export default App;
